package music.play.util;

import java.time.LocalDateTime;

public class CronTask {

    public static class Play implements Runnable {
        @Override
        public void run() {
            AudioUtil.Play();
            System.out.println("开始播放" + LocalDateTime.now());
        }
    }

    public static class Stop implements Runnable {
        @Override
        public void run() {
            AudioUtil.Stop();
            System.out.println("停止播放" + LocalDateTime.now());
        }
    }
}
